package com.xqboss.apps.vo.sys;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 公告分类表
 * </p>
 *
 * @author admin
 * @since 2024-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysAnnouncementCategoryVo", description="公告分类数据")
public class SysAnnouncementCategoryVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "分类名称")
    private String categoryName;

    @ApiModelProperty(value = "是否已读（该分类下的所有公告） 0否,1是")
    private Integer isRead;

    public void setIsRead(Integer isRead) {
        this.isRead = isRead==null?1:isRead;
    }
}
